/*
 * @Author: your name
 * @Date: 2021-08-03 15:46:08
 * @LastEditTime: 2021-08-04 13:44:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /shb-pc-fe/src/modules/report/product/index.js
 */
import Vue from 'vue';
import '../common/common.scss';

import ProductView from './productView'
import Loading from 'packages/BaseLoading';
import * as mtracker from '../../../util/Mtrackers';
import filters from '@src/filter/filter';
import StatsChartEmpty from '../common/StatsChartEmpty.vue';
import { 
    Popover,
    Table, TableColumn,
    Pagination,
    Tooltip
  } from 'element-ui';
import http from '@src/util/HttpUtil';
import DatePicker from '../common/DataTime.vue'
import StatsPopverIcon from './components/StatsPopoverIcon.vue';

for(let name in filters) Vue.filter(name, filters[name]);

mtracker.initializeTalkingData();

Vue.component(StatsChartEmpty.name, StatsChartEmpty);
Vue.component(StatsPopverIcon.name, StatsPopverIcon);
Vue.component(Popover.name, Popover);
Vue.component(DatePicker.name, DatePicker)
Vue.component(Table.name, Table);
Vue.component(TableColumn.name, TableColumn);
Vue.component(Pagination.name, Pagination);
Vue.component(Tooltip.name, Tooltip);

Vue.prototype.$loading = Loading;
Vue.prototype.$http = http;
Vue.prototype.$tdOnEvent = mtracker.onEvent;

let app = {
  render: h => h(ProductView)
}

export default app;